package com.logistics.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 司机实体类
 */
@Data
@TableName("driver")
public class Driver {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long tenantId;
    
    private Long siteId;
    
    private String driverNo;
    
    private String name;
    
    private Integer gender;
    
    private String phone;
    
    private String idCard;
    
    private String licenseType;
    
    private String licenseNo;
    
    private LocalDate licenseExpireDate;
    
    private LocalDate entryDate;
    
    private String emergencyContact;
    
    private String emergencyPhone;
    
    private String driverStatus;
    
    private String remark;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}

